#include "taskthreadrequest.h"
#include "log.h"

namespace Wishmaster {

TaskThreadRequest::TaskThreadRequest(const ThreadId& id, const Wishmaster2::Network::Url& link,
									 const QString& msg, Wishmaster2::Network::RequestManager* connector)
	: TaskRequest(TaskRequest::rtThread, link, msg, connector),
	m_threadId(id)
{
}

ThreadId TaskThreadRequest::threadId() const
{
	return m_threadId;
}

void TaskThreadRequest::onRequestDone()
{
	QByteArray arr(request()->content()->data(), request()->content()->size());
	emit result(this, arr);
}

} // namespace Wishmaster
